import pandas as pd
import matplotlib.pyplot as plt
import numpy as np

df = pd.read_csv('./data/iris.data',header=None)

y = df.iloc[0:100,4].values
y = np.where(y == 'Iris-setosa', -1,1)

x = df.iloc[0:100,[0,2]].values

plt.scatter(x[:50,0],x[:50,1],color='red',marker='o',label='setosa')
plt.scatter(x[50:100,0],x[50:100,1],color='blue',marker='x',label='versicolor')
plt.xlabel('sepel length [cm]')
plt.ylabel('petal length [cm]')
plt.legend(loc='upper left')
plt.show()

